package com.koocloud.electroplatemanage.mapper;

import com.koocloud.electroplatemanage.pojo.CodeNameResult;
import com.koocloud.electroplatemanage.pojo.IncomeBasicInfoVo;
import com.koocloud.electroplatemanage.pojo.Process;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: electroplatemanage
 * @description: 技术要求Mapper接口层
 * @author: xxc
 * @create: 2020-11-16 10:46
 */
@Mapper
public interface ProcessMapper {

    //根据工单号查询数据
    Process selectByWorkOrderNumber(String workOrderNumber);

    //查询技术要求所有记录
    List<Process> selectAllData(Process process);

    //新增一条数据
    int insert(Process process);

    //逻辑删除一条数据
    int delete(@Param("id")String id, @Param("userId")String userId, @Param("deleteFlag") String deleteFlag);

    //根据工单号修改一条数据
    int update(Process process);

    //进入下一步的状态
    int changeState(String workOrderNumber);

    //查询所有表面处理过程  表面处理过程下拉用
    List<CodeNameResult> selectProcess(String idOrName);

    //查询所有检验项目   检验多选用
    List<CodeNameResult> selectInspect();

    //查询工单号记录数
    int selectWorkOrderNumberCount(String workOrderNumber);
}
